package com.rainy.cloud.producer.controller;

import com.rainy.cloud.producer.service.DemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/demo")
public class DemoController {

    @Autowired
    private DemoService demoService;

    @RequestMapping("/getDemo")
    public Object getDemo() {
        demoService.addUser();
        return "success";
    }

}
